<h1>Person List</h1>

<table>
  <thead>
    <tr>
      <th>Id</th>
      <th>Last name</th>
      <th>First name</th>
      <th>Middle name</th>
      <th>Type</th>
      <th>Client type</th>
      <th>Author</th>
      <th>Visible</th>
      <th>Created at</th>
      <th>Updated at</th>
    </tr>
  </thead>
  <tbody>
    <?php foreach ($person_list as $person): ?>
    <tr>
      <td><a href="<?php echo url_for('person/show?id='.$person['id']) ?>"><?php echo $person->getid() ?></a></td>
      <td><?php echo $person->getlast_name() ?></td>
      <td><?php echo $person->getfirst_name() ?></td>
      <td><?php echo $person->getmiddle_name() ?></td>
      <td><?php echo $person->gettype() ?></td>
      <td><?php echo $person->getclient_type_id() ?></td>
      <td><?php echo $person->getauthor() ?></td>
      <td><?php echo $person->getvisible() ?></td>
      <td><?php echo $person->getcreated_at() ?></td>
      <td><?php echo $person->getupdated_at() ?></td>
    </tr>
    <?php endforeach; ?>
  </tbody>
</table>

  <a href="<?php echo url_for('person/new') ?>">New</a>
